package com.example.designPatten.factory.simpleFactory;

/**
 * Created by com on 16/3/22.
 */
public abstract class Pizza {
    String name;
    String dough;//生面团
    String sauce; //酱油

    public Pizza(String name, String dough, String sauce) {
        this.name = name;
        this.dough = dough;
        this.sauce = sauce;
    }

    public void prepare(){
        System.out.println("准备制作中:"+name);
        System.out.println("加面:"+dough);
        System.out.println("加作料:"+sauce);
    }

    public void bake(){
        System.out.println("烘烤25分钟");
    }

    public void cut(){
        System.out.println("按对角切开pizza");
    }

    public void box(){
        System.out.println("请把pizza装盒");
    }

}
